﻿using System.ServiceModel;
using Warehouse.Services.Dto;

namespace Warehouse.Services.Interface
{
    [ServiceContract(Namespace = "Warehouse.Services.DeliveryServiceQueued")]
    public interface IDeliveryServiceQueued
    {
        /// <summary>
        /// Submits the delivery.
        /// </summary>
        /// <param name="newDeliveryDto">The new delivery dto.</param>
        [OperationContract(IsOneWay = true)]
        [TransactionFlow(TransactionFlowOption.Allowed)]
        void SubmitDelivery(DeliveryDto newDeliveryDto);
    }
}